<?php
header("Cache-Control:no-cache, must-revalidate");  
?>
        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
          <div class="table-responsive">
            <table class="table table-striped">
              <thead>
                <tr>
                  <th>No.</th>
                  <th>图书条码</th>
                  <th>图书名称</th>
                  <th>作者</th>
                  <th>当前/总数</th>
                </tr>
              </thead>
              <tbody>

<?php
require_once ('../../../public/config/config.php');
$sql = "select * from lib_books";
$result = mysqli_query($GLOBALS['DB'], $sql);
while($row = mysqli_fetch_assoc($result)){
  echo "<tr>";
  echo "<td>".$row['lib_books_id']."</td>";
  echo "<td>".$row['lib_books_code']."</td>";
  echo "<td>".$row['lib_books_name']."</td>";
  echo "<td>".$row['lib_books_author']."</td>";
  echo "<td>".$row['lib_books_nqty']."/".$row['lib_books_qty']."</td>";
  echo "</tr>";
}
mysqli_free_result($result);
?>

              </tbody>
            </table>
          </div>
        </div>        